<?php

namespace app\admin\validate;


class Authority extends BaseValidate
{
    protected $rule = [
        "titles"       => "require|max:20",
        "contents"     =>"require",
        "link"         =>"activeUrl",
    ];

    protected $message = [
        'titles.require'           => '课件名称必须填写',
        'titles.max'               => '课件名称不能超过20个字符',
        'contents.require'         => '权威内容不能为空',
        'link.activeUrl'                 =>'链接格式不正确',
    ];
}